package com.woniuxy.carrental.service;

import com.woniuxy.carrental.entity.PageBean;
import com.woniuxy.carrental.entity.ResponseResult;
import com.woniuxy.carrental.entity.Store;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author author
 * @create 2021-09-28 14:48
 */
//肖某仓库Service
public interface StoreService {

    //向仓库中添加数据
    void addStore(Store store);

    //修改
    void updataStoreService (Store store);
    //删除
    void deleteStoreService(@Param("storeid")int storeid);

    //查询:没有条件查询所有数据展示
    List<Store> selectAllStoreService();

    //根据店名查找店信息
    Store findStoreBySname(String sname);

    //使用INPUT 输入框模糊查询sname
    List<Store> selectAllByLikeSname(@Param("sname")String sname);

    //分页查询表中数据
    ResponseResult<PageBean<Store>> selectStoresByPageService(@Param("store")Store store, @Param("pageIndex") int pageIndex,
                                                              @Param("pageSize") int pageSize);
}
